package mid

/*
* @author: hjz
* @time: 2025/6/5 22:17
 */
func rotateArray(nums []int, k int) {
	tmp := make([]int, len(nums))
	for i, num := range nums {
		tmp[(i+k)%len(nums)] = num
	}
	copy(nums, tmp)
}
